package com.black.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.black.system.domain.SysPost;
import com.black.system.domain.req.system.add.SysPostAddReq;
import com.black.system.domain.req.system.edit.SysPostEditReq;
import com.black.system.domain.req.system.query.SysPostQueryReq;
import com.black.system.domain.resp.system.SysPostResp;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author L
 * @description 针对表【sys_post(岗位信息表)】的数据库操作Service
 * @createDate 2024-08-19 10:07:23
 */
public interface SysPostService extends IService<SysPost> {

    PageInfo<SysPostResp> paginationQuery(SysPostQueryReq req);

    /**
     * 添加
     *
     * @param req
     * @return
     */
    boolean add(SysPostAddReq req);

    /**
     * 修改
     *
     * @param req
     * @return
     */
    boolean edit(SysPostEditReq req);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    SysPostResp findById(Long id);

    /**
     * 删除
     *
     * @param ids
     * @return
     */
    boolean deleteById(Long[] ids);

    /**
     * 导出
     *
     * @param req
     * @param ids
     * @return
     */
    List<SysPostResp> export(SysPostQueryReq req, Long[] ids);
}
